﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PFAGame
{
    class MobFactory
    {
        public static AMob Create(AMob.e_typeMob typeMob, float x, float y)
        {
            AMob mob;

            switch (typeMob)
            {
                case AMob.e_typeMob.KAMIKAZ:
                    mob = new Kamikaz(x, y);
                    break;
                case AMob.e_typeMob.KAMIKAZBOSS:
                    mob = new KamikazBoss(x, y);
                    break;
                case AMob.e_typeMob.MELEE:
                    mob = new MeleeRobot(x, y);
                    break;
                case AMob.e_typeMob.MELEEBOSS:
                    mob = new MeleeBoss(x, y);
                    break;
                case AMob.e_typeMob.RANGED:
                    mob = new RangedRobot(x, y);
                    break;
                case AMob.e_typeMob.RANGEDBOSS:
                    mob = new RangedBoss(x, y);
                    break;
                case AMob.e_typeMob.BISHOP:
                    mob = new Bishop(x, y);
                    break;
                case AMob.e_typeMob.QUEEN:
                    mob = new Queen(x, y);
                    break;
                case AMob.e_typeMob.TOWER:
                    mob = new Tower(x, y);
                    break;
                case AMob.e_typeMob.KNIGHT:
                    mob = new Cavalier(x, y);
                    break;
                default:
                    mob = new Kamikaz(x, y);
                    break;
            }
            return mob;
        }
    }
}
